package com.demo.webflux.datar2bdc;

import org.springframework.data.r2dbc.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;

import com.demo.webflux.domain.Test;

import reactor.core.publisher.Flux;

public interface BookRepository extends ReactiveCrudRepository<Test, Integer> {

	@Query("select * from test where title = :title")
	Flux<Test> findBooks(@Param("title") String title);

}
